package net.csdn.business.common.domain.request.project;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName NewRepoTipsSetDTO
 * @Description 新增仓库打赏配置DTO
 * @Author zhangyl
 * @Date 2024/3/12 11:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class NewUserTipsRecordDTO implements Serializable {
   /* @NotBlank(message = "orgId不能为空")
    private String orgId;
    @NotBlank(message = "repoId不能为空")
    private String repoId;*/
    @NotBlank(message = "repoPath不能为空")
    private String repoPath;
    @NotBlank(message = "username不能为空")
    private String username;
    @NotBlank(message = "amount不能为空")
    private String amount;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date tipDate;
    //@NotBlank(message = "currUserId不能为空")
    private String currUserId;
}
